<template>
	<view class="box">
		<uNavbar title="违规处罚" ></uNavbar>
		<view class="list">
			<rich-text class="s" :nodes="article"></rich-text>
		</view>
	</view>
	
</template>

<script>
import {punish }from "../../api/other.js"

	export default {

		data() {
			return {
				article: ''//富文本内容
			}
		},
		onLoad(){
			this.getlist()
		},
		methods: {
			getlist(){
				punish().then(res=>{
					console.log(res)
					this.article=res.data.content
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		width: 100%;
		height: 100vh;
		background: #E0DDDA;
	}
	.list{
		margin-top: 40rpx;
		width: 94%;
		margin: 0 auto;
	}
	.s{
		color: #333 !important;
		opacity: 1;
	}
</style>
